$ 0 0 You can use as below, where aa = date type for hire date and bb = date type for leaving dateHRS=YSAYbbHRS-YSAYaa