howtocalculate