Created controller logic for calculating how much you owe