Alexandre,
You could repost in an Excel group here: http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx#2
as this would possibly be you best source for your question. Also provide
more specific information.
A good accounting program would do this for you easily.