Created calculation methods.