A Ruby answer for http://codegolf.stackexchange.com/questions/19649/love-calculation