calculates for 30 and 45 balls correctly