http://www.gweep.net/~sfoskett/tech/poecalc.html