How to calculate the total rate with amount of days selected.