I happened to come across this library and found very useful.
This will be a great boon to all banking projects. The library is very well designed.
This code library is based on
basic concepts in recurring domains such as time and money. Distilled model
concepts will yield a coherent design that is simple to use and easy to change
to fit the needs of different application development projects.
This code library is hosted in sourceforge.net under the very permissive MIT Licence, so no one should be impeded from trying it.
If you are looking forward to develop time and money calculations for any projects do look at this library before re-inventing the wheel.
Home Page of the library: http://timeandmoney.sourceforge.net/