troubles in calculation