Ruby on Rails property yield calculator