🛠️ToolsShed

저축 목표 계산기

목표 금액을 달성하기 위해 매달 얼마나 저축해야 하는지 계산합니다.

저축 목표 계산기는 특정 날짜까지 재무 목표를 달성하기 위해 매달 얼마를 저축해야 하는지 정확히 파악하는 데 도움을 줍니다. 휴가, 주택 계약금, 비상 자금 또는 주요 구매를 위해 저축하든, 이 도구는 목표를 구체적이고 실행 가능한 월별 저축 금액으로 변환합니다.

목표 금액, 현재 저축액, 저축 계좌의 연 수익률, 목표 날짜를 입력하면 계산기가 필요한 월 기여금을 알려주고 최종 잔액 중 기여금과 이자 수익이 얼마인지 보여줍니다.

반대 방향으로도 작업할 수 있습니다: 매월 저축할 수 있는 금액을 입력하고 목표에 도달하는 데 얼마나 걸리는지 확인하세요. 타임라인을 보면 추상적인 목표가 구체적으로 느껴지고 목표 금액, 월 저축액 또는 목표 날짜를 조정할지 결정하는 데 도움이 됩니다.

자주 묻는 질문

코드 구현

def monthly_savings_needed(
    goal: float,
    current_savings: float,
    months: int,
    annual_rate: float = 0
) -> float:
    """Calculate monthly deposit needed to reach a savings goal."""
    if annual_rate == 0:
        return (goal - current_savings) / months
    r = annual_rate / 100 / 12  # monthly rate
    fv_current = current_savings * (1 + r) ** months
    remaining = goal - fv_current
    if remaining <= 0:
        return 0
    pmt = remaining / (((1 + r) ** months - 1) / r)
    return pmt

# Example: save $10,000 in 24 months with 4% annual interest
monthly = monthly_savings_needed(
    goal=10000,
    current_savings=1000,
    months=24,
    annual_rate=4
)
print(f"Monthly deposit needed: ${monthly:.2f}")

# Show total contributions vs interest earned
total_contributions = monthly * 24 + 1000
print(f"Total contributions: ${total_contributions:.2f}")
print(f"Interest earned: ${10000 - total_contributions:.2f}")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.