We have a SharePoint 2013 list column 'Expiry Date' and we need to calculate overdue by days. For eg, if expiry date is 1/8/2017 and Overdue by days should be 158. How to achieve this? thanks in advance!
Try to add this formula to your calculated field to show diff between two dates as days.
=DATEDIF([Current Date], [Enddate],"d")
Note : [Today] does not work in calculated field as explained here: How to use Today and Me in Calculated column
You can add jslink on the view. Inside JS link, calculate the number of days from today to get the required value. As JSlink executes on page load, it will always show updated value based on today.