calculate total leave days on load