Simple math function calculate.