rails-inspire calculations for backbone