add helper methods for calculating derived parameters.