I tried multiple recipes in the ilvl 50-70 range, and it appears to be calculating very, very close to the website.
Skills wise, it's right on the money, however, some of the calculations for quality were off by just a tad, <10 quality in most cases.
Overall, looks like your logic and...