Calculate ticket discounts cleaned up and almost there

I just have to figure out how to calculate how much time the ticket was
bought before the flight takes off and see if it passes two weeks
before. Then the Internet sale discount. Then the First Class option
raise. Then the tax.