Thanks for your suggestions Robert. Looks like this is all I needed to 
do:

4          first_month_paid = first_month_paid >> (1)
-- 
Posted via http://www.ruby-forum.com/.