Durability Calculations on Ruby on Rails