If you could ever figure out how to put it all into an equation, so I don't have to do that legwork, I would try to code it. I'm sure I'd have to create some extra tables and such, but if the data exists..

I'd need a lot of detail.