calculate gearman