wdi ruby calculator