Added capability to calculate and display the profit for each day.