calculating days between dates, prices and prices per day