Refactor bill calculation and bill display code into separate methods