How do you calculate leave pro rata?