Calculation class.