Computation A - Less discount first before interest computation.
Computation B - Compute interest first before deducting discount