calculate discount/late fee and apply it to the proper field.