class ExtraBill < ApplicationRecord def adjusted_amount deduct_autopaid? ? amount - Expense.autopaid_total : amount end end