function end date