I am working on solving a problem and stuck on how to derive the below. Any tips on how to get this subtotal would be appreciated.
calculate the subtotal for each line item (discount is per unit and shipping is a flat cost).find the Total cost for each order, the "Total Saved" for each order, and the number of days it took to pay the report in full.