class CreditCardBill < ApplicationRecord def unpaid amount - Expense.credit_card_monthly_total end end