implemented fio4ri's better calculation system

may or may not work