You can use arrays to do it. Say you use 3 arrays for three columns. Now based on the number of days, you can fill the values in these arrays and then print them. Another way is to use 3 different variables and then assign the values to them using the conditions and print them on the report.
Second one being an easier option, you can chose first if you want the columns to appear dynamically rather than being fixed.
Unless you try to do something beyond what you have already mastered, you will never grow!