Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions app/interactives/time-value-money-calculator/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ export function TVMCalculator() {
fv: "30000",
rate: "3.5",
compoundFreq: "12",
paymentFreq: "12",
paymentFreqMode: "different" as PaymentFrequencyMode,
paymentFreq: "26",
},
};
}
Expand Down Expand Up @@ -518,7 +519,7 @@ export function TVMCalculator() {
"Number of Periods Example: Solve for time to pay off credit card",
bullets: [
"Present value (credit card balance): positive",
"Payment per period (monthly payments): negative",
"Payment per period (bi-weekly payments): negative",
"Future value (remaining balance): zero",
],
example: {
Expand All @@ -528,7 +529,7 @@ export function TVMCalculator() {
fv: "0",
rate: "18",
compoundFreq: "365",
paymentFreq: "12",
paymentFreq: "26",
paymentFreqMode: "different" as PaymentFrequencyMode,
},
};
Expand Down Expand Up @@ -625,6 +626,7 @@ export function TVMCalculator() {
onClick={() => {
if (option.value !== solveFor) {
setPresentValue(""); setFutureValue(""); setPayment(""); setAnnualRate(""); setPeriods("")
setPaymentFrequencyMode("same")
}
setSolveFor(option.value)
}}
Expand Down Expand Up @@ -804,7 +806,7 @@ export function TVMCalculator() {
</section>

{/* Results Card */}
<Card className="w-full lg:w-1/2">
<Card className="w-full hidden md:block lg:w-1/2">
<CardContent className="w-full bg-[var(--card-background)] rounded-3xl p-[32px]">
<h2 className="text-[20px] font-bold mb-1">{currentOption?.label}</h2>
{calcError ? (
Expand All @@ -820,7 +822,7 @@ export function TVMCalculator() {

{/* Mobile sticky footer */}
<div className="md:hidden fixed bottom-0 left-0 right-0 bg-background border-t border-border p-4 shadow-lg">
<div className="flex items-center justify-between">
<div className="flex flex-col items-center justify-between">
<div>
<div className="text-xs ">{currentOption?.label}</div>
{calcError ? (
Expand Down