Package: perfinr 0.0.0.9001

perfinr: Personal Finance Calculations for the Field Manual

Small, tested functions for the calculations in the personal finance field manual: budgeting, savings, emergency funds, debt payoff, loans and mortgages, investing, retirement accounts, insurance, and federal income taxes.

Authors:Martin Frigaard [aut, cre]

perfinr_0.0.0.9001.tar.gz
perfinr_0.0.0.9001.zip(r-4.7-any)perfinr_0.0.0.9001.zip(r-4.6-any)perfinr_0.0.0.9001.zip(r-4.5-any)
perfinr_0.0.0.9001.tgz(r-4.6-any)perfinr_0.0.0.9001.tgz(r-4.5-any)
perfinr_0.0.0.9001.tar.gz(r-4.7-any)perfinr_0.0.0.9001.tar.gz(r-4.6-any)
perfinr_0.0.0.9001.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
perfinr/json (API)

# Install 'perfinr' in R:
install.packages('perfinr', repos = c('https://mjfrigaard.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mjfrigaard/perfinr/issues

Pkgdown/docs site:https://mjfrigaard.github.io

On CRAN:

Conda:

quarto

4.08 score 9 scripts 53 exports 0 dependencies

Last updated from:7ea21f1255. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK127
source / vignettesOK216
linux-releaseOK121
macos-releaseOK224
macos-oldrelOK224
windows-develOK118
windows-releaseOK146
windows-oldrelOK145
wasm-releaseOK96

Exports:after_tax_valueapply_rulesapr_to_apybeneficiary_sharebreak_even_yearscredit_utilizationdti_ratioef_growthemergency_fund_targetemployer_matchfirst_payment_splitfixed_cost_ratiofuture_valuefuture_value_after_feesfuture_value_serieshysa_balanceidr_monthly_paymentincome_taxloan_income_ratiomonthly_contribution_neededmonthly_for_goalmonthly_savingsmonthly_standard_paymentmonths_to_break_evenmonths_to_ef_goalmonths_to_fundmonths_to_payoffmortgage_paymentnet_worthopportunity_costorder_avalancheorder_snowballpay_frequency_from_dayspay_period_dayspay_period_full_time_hourspay_periods_per_yearpayoff_vs_investpercent_of_incomeplan_costportfolio_returnraise_invested_valueraise_keptreal_returnrebalance_amountrent_buy_thresholdrule_of_72savings_ratesubscription_opportunity_costto_annualto_monthlytotal_interestwealth_formulayearly_fee

Dependencies:

Emergency Fund
The emergency fund functions | How big should the fund be? | How long will it take to fill? | How much should you save to meet a deadline? | What does the fund earn while it sits? | Variations | Longer deadlines mean smaller payments | What these functions leave out | Putting it together | Call stack | Recap

Last update: 2026-12-04
Started: 2026-11-03

Income
How much does steady saving grow into? | How much of your paycheck is already spoken for? | What is a raise really worth? | How many paychecks are in a year? | Variations | Limits | Putting it together | Call stack | Recap

Last update: 2026-11-25
Started: 2026-11-03

Budgeting
The budgeting functions | What share of income does an expense take? | What does a small habit cost over a year? | Most budgets work in months | What could the money have become? | When does an upfront cost pay for itself? | Variations | One call compares every time horizon | Putting it together | Call stack | Recap

Last update: 2026-11-25
Started: 2026-11-03

Managing Debt
The managing debt functions | What does a balance really cost? | APR vs. APY | How long does a minimum payment take? | What does the loan term cost? | How much student debt can a salary carry? | The 1x rule | Income driven repayment | What ratios do lenders check? | Debt to income ratio | Credit utilization | Which debt should you pay first? | Pay off or invest? | Avalanche vs. snowball | Variations | What these functions don't model | Putting it together | How monthly_standard_payment() works | Recap

Last update: 2026-11-25
Started: 2026-11-03

Tracking Spending
Where did the money go? | When a transaction doesn't match | What does a subscription really cost? | Comparing horizons | Limits | Putting it together | Call stack | Recap

Last update: 2026-11-25
Started: 2026-11-03

perfinr
Installation | Conventions | How the vignettes map to the book | A short tour | Foundations | Savings | Investing | Taxes and insurance | Planning | Recap

Last update: 2026-11-03
Started: 2026-11-03

Readme and manuals

Help Manual

Help pageTopics
After tax value of a retirement contributionafter_tax_value
Categorize transactions with keyword rulesapply_rules
Convert an APR to an APYapr_to_apy
Share of assets with a named beneficiarybeneficiary_share
Years for a higher deductible to pay offbreak_even_years
Credit utilizationcredit_utilization
Debt to income (DTI) ratiodti_ratio
Emergency fund balance after interestef_growth
Emergency fund targetemergency_fund_target
Yearly employer retirement matchemployer_match
Interest and principal in the first loan paymentfirst_payment_split
Fixed costs as a percent of take home payfixed_cost_ratio
Future value of a one time investmentfuture_value
Future value of monthly contributions after fund feesfuture_value_after_fees
Future value of a series of equal contributionsfuture_value_series
High yield savings account balancehysa_balance
Income driven repayment (IDR) monthly paymentidr_monthly_payment
Federal income tax for a single filerincome_tax
Student loan total relative to expected salaryloan_income_ratio
Monthly contribution needed to reach a target by a deadlinemonthly_contribution_needed
Monthly deposit needed to reach a savings goalmonthly_for_goal
Monthly savings at a given savings ratemonthly_savings
Monthly payment on a standard student loan planmonthly_standard_payment
Months until an upfront cost pays for itselfmonths_to_break_even
Months to reach an emergency fund targetmonths_to_ef_goal
Months to fund a goal with a fixed monthly amountmonths_to_fund
Months to pay off a balance with a fixed paymentmonths_to_payoff
Monthly payment on a fixed rate loanmortgage_payment
Net worthnet_worth
What money spent today could grow toopportunity_cost
Order debts for the avalanche methodorder_avalanche
Order debts for the snowball methodorder_snowball
The pay frequency for a period length in dayspay_frequency_from_days
Days in one pay periodpay_period_days
Full-time hours in one pay periodpay_period_full_time_hours
Paychecks in a year for a pay frequencypay_periods_per_year
Pay off a loan or invest the differencepayoff_vs_invest
Expense as a percent of incomepercent_of_income
Total yearly cost of a health planplan_cost
Blended return of a stock and bond portfolioportfolio_return
Future value of investing part of a raiseraise_invested_value
Part of a raise kept after federal income taxraise_kept
Return after inflationreal_return
Amount to move to get back to a target allocationrebalance_amount
Monthly rent that matches the unrecoverable cost of owningrent_buy_threshold
Years for money to double (rule of 72)rule_of_72
Savings ratesavings_rate
What a subscription would grow to if invested insteadsubscription_opportunity_cost
Convert a daily, weekly, or monthly amount to a yearly amountto_annual
Convert a daily, weekly, or yearly amount to a monthly amountto_monthly
Total interest paid over a loantotal_interest
Wealth from saving part of an income every yearwealth_formula
Yearly fund feeyearly_fee