Having worked on billing and accounting systems for decades now. I am constantly amazed by all of the edge cases and situations that have to be handled to ensure that every bill is correct and nothing is missed or misbilled. Especially since the oil firms out here will reject an invoice if it is off by as little as a penny.
At first it seems like it's so easy and straightforward but when you are looking at thousands if not millions of bills a year and the myriad methods you need to compensate for to ensure its accepted by large firms.... well. I can say nothing surprises me anymore. Including hardware level errors causing an issue no one expected with a final number.