modified the rate options calculations code to be compliant with the formating and standards of the rest of the open tsdb code base