data entry calculations