IOOF Interview Question to implement day duration counter between two dates