Ruby helper class to simplify some mathematical calculations