model changes; added helper function for calculating payment due --KW