Calculating the days prices