enhancing billing app logic