Calculations work properly