Use switch statement to determine discount calculation