Skip to content

calculators

Calculator views.

Modules:

Classes:

BRMSBondCalculatorWidget

BRMSBondCalculatorWidget(parent=None)

Bases: BaseCalculatorWidget

Methods:

center_window

center_window() -> None

Center the main window on the screen.

parse_view_params

parse_view_params()

Parse the parameters from the widget inputs and return a tuple of values.

show_bond_payment_schedule

show_bond_payment_schedule(payments)

Display the bond payment schedule in a table widget.

show_bond_value

show_bond_value(
    npv, clean_price, dirty_price, accrued_interest
)

Display the bond value in a dialog.

BRMSMortgageCalculatorWidget

BRMSMortgageCalculatorWidget(
    parent=None,
    name="Mortgage Calculator",
    size=(1500, 500),
)

Bases: BaseCalculatorWidget

Methods:

center_window

center_window() -> None

Center the main window on the screen.

parse_view_params

parse_view_params()

Parse the parameters from the widget inputs and return a tuple of values.

show_loan_payment_schedule

show_loan_payment_schedule(
    interest_pmt, principal_pmt, outstanding_amt
)

Display the bond payment schedule in the table widget.

show_loan_value

show_loan_value(
    npv, total_interest_pmt, total_principal_pmt, total_pmt
)

Display the bond value in a dialog.