I used to have that problem with doing estimates for decking. Spent a little time mucking about with Excel & now I have a spreadsheet that does it for me. I just enter the overall dimensions, direction of boards & joist spacing & it works out the joist run, board run & number of screws required. Since done another one for laminate flooring quotes. Works out number of packs, length of edge strip etc.