A ruby lib to calculate percentages