I actually made a spreadsheet a while back to calculate a bunch of stuff. I can't recall if I completely finished it, but I think it is. All the major stuff is there though. See attachment.