I made a really simple tool to calculate HQ chance, based off of Mogg Fanatic's data (of almost ten thousand samples).

http://mooglebox.com/misc/hqcalc.php