Ward loop calculator