Fixing discount calculation