Calculates simple interest by defining variables and then evaluating an expression string that uses them.