The world of the sim enthusiast is a surprising goldmine for this kind of thing. There's some very competently put together stuff out there - have a look at
www.avsim.com,
www.precisionmanuals.com to name a couple. They usually have fuel / load planners for simulated aircraft available to download, typically excel based. Lots of techniques used, from lookup tables to algorithms.
James