I'm passing trhough an issue that maybe is very simple for somebody has passed too.
I have to calculate the margin of a sale, it goes good but the problem comes when I have a minus.
Example
Sale price without VAT: 300.00
Cost price without VAT: 100.00
Calculation: (300.00-100.00)/300.00
Real life Example:
Sale price without VAT: 300.00
Cost price without VAT: -2100.00
Calculation: (300.00--2100.00)/300.00 (Totally Wrong).
What to do in this case? Has somebody passed over this?
Any help is really appreciated.