created initial draft of the discount calculator