How do I calculate total sales for an order including refunds?

Hey @guster-dev-123 ,

Could you figure out a reliable formula to calculate “Total Sales”?

Also, curious why you didn’t take “kind = void” into account while calculating the returns.