Added wdratio function

for greater than 2