We need more information to help you solve your probably. We need to see all your calcs, and what happens when you say 'it is not working'. What's not working. Best if you mock up some data and post a packaged workbook.
Post a sample packaged workbook (twbx) and someone will be happy to help (as Shawn has suggested). Here are some reasons why we ask for this:
Cheers and best of luck!