refactor: change name of _get_expires_on to _calculate_expires_on