Added difference in days function