how, to, calculate, settlement, discount