Gem to calculate the Wilks formula