I use numbers cruncher for this. Its not an easy calculation that you can find on a web site. The short ones will get you close though. Numbers cruncher cost me $300 I think, which in turn was figured into our overhead.