This utility allows you to calculate date, time & DateTime difference. The code explained in attached objects can be used during C/AL Code for calculating differences between dates.
Below is the Sample output of the attached objects. I am pretty sure that you would have or will face an situation where you can use it during C/AL Code.
For Details Read Here - http://saurav-nav.blogspot.in/2016/03/how-to-calculate-difference-between-two.html
Standard can do that, but it's a circus to get it done. Doesn't do it out of the box least, needs lots of code.