same problem with iBook G4
My iBook just started having problems a few weeks ago. I would have the power cord plugged in and the icon would show that it was charging, however, all that it would tell me was that it was calculating the time remaining. The battery wouldn't charge at all, and in fact, continued to decrease. In addition, the computer would just power off and crash. I took it to the apple store and they sent it out for repair. When it came back they had replaced the main logic board (thank you apple care). But, when I got home, the computer still had the same problems with the charging. This has become a problem that happens intermittently where I will notice it begin to charge for a few moments and then say calculating again for awhile. I took it back to the apple store and tried it with one of their batteries and power cord and basically observed the same thing.
Still not sure what is causing this.