discount calculation. kinda