We've spent 6 hours deriving, and though we know we have other options like regression and not sweating the change of the shooter we thought we could make this a fun challenge... (Furthest we've gotten starting from the wikipedia equation)
http://m.imgur.com/DKugmhV