(注:雖然這個問題涉及到電子表格來解決這個問題,我也願意使用PHP或JavaScript)如何計算每月最高支付
我有預測,我個人財務預算電子表格未來3年。目標是儘可能地支付最高優先級的債務,直到償還債務爲止,然後下一個優先債務開始獲得所有額外的月度資金,直到它被支付,等等。我希望債務支付能夠自動計算他們的付款,但由於計算債務支付需要考慮使用債務支付計算的債務餘額,因此我遇到了循環參考錯誤。此外,淨收入和因此檢查餘額使用債務支付來推導它們的價值,因此它在嘗試自我計算債務支付時提供另一個循環參考。
是否有一個財務功能可以計算最大可能的支付,而無需引用債務餘額?需要開始餘額和利率的東西,並查看已付款項的總和?我想我可以繞過Checking Balance循環參考。
下面是我的電子表格的示例。收入和費用行是手動輸入的。債務目前也是手動輸入的,但我希望它能夠按照上面所述自動計算。淨收入,支票餘額和債務餘額是計算行。
---------------------------------------------------------------------------------------------
| | Jan | Feb | Mar | Apr | May | June | July | Aug | Sep | ...
---------------------------------------------------------------------------------------------
| INCOME
---------------------------------------------------------------------------------------------
| Salary 1 | 6500 | 6500 | 6500 | 6500 | 7000 | 7000 | 7000 | 7000 | 7000 | ...
---------------------------------------------------------------------------------------------
| Salary 2 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | ...
---------------------------------------------------------------------------------------------
| Misc | 500 | | | | | 500 | | | | ...
---------------------------------------------------------------------------------------------
| EXPENSES
---------------------------------------------------------------------------------------------
| Gas | 400 | 400 | 400 | 400 | 400 | 400 | 400 | 400 | 400 | ...
---------------------------------------------------------------------------------------------
| Food | 800 | 800 | 800 | 800 | 800 | 800 | 800 | 800 | 800 | ...
---------------------------------------------------------------------------------------------
| Auto Ins | 150 | | | | | | 150 | | | ...
---------------------------------------------------------------------------------------------
| Misc | 500 | 1000 | 500 | 500 | 500 | 2500 | 2500 | 500 | 500 | ...
----------------------------------------------------------------------------------------------
| DEBT
---------------------------------------------------------------------------------------------
| Auto | 500 | 500 | 500 | 500 | 500 | 500 | 500 | 500 | 500 | ...
---------------------------------------------------------------------------------------------
| Mortgage | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | 2500 | ...
---------------------------------------------------------------------------------------------
| Student Loan | 700 | 700 | 700 | 700 | 700 | 700 | 700 | 700 | 700 | ...
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
| NET INCOME
---------------------------------------------------------------------------------------------
| | 3950 | 3100 | 3600 | 3600 | 4100 | 2600 | 1950 | 4100 | 4100 | ...
----------------------------------------------------------------------------------------------
| CHECKING BALANCE
---------------------------------------------------------------------------------------------
| | 3950 | 7050 | 10650 | 14250 | 18350 | 20950 | 22900 | 27000 | 31100 | ...
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
| DEBT BALANCE
---------------------------------------------------------------------------------------------
| Auto | 14809 | 14618 | 14427 | 14235 | 14043 | 13850 | 13657 | 13463 | 13269 | ...
---------------------------------------------------------------------------------------------
| Mortgage |249571 |249141 |248710 |248278 |247844 |247409 |246974 |246537 |246100 | ...
---------------------------------------------------------------------------------------------
| Student Loan | 84541 | 84050 | 83616 | 83148 | 82677 | 82203 | 81726 | 81245 | 80761 | ...
---------------------------------------------------------------------------------------------
編輯 - 2014年9月25日
爲了進一步闡明考慮上面的表。這是我想要做的。
netIncome = SUM(INCOME) - SUM(EXPENSE) - SUM(DEBT)
checkingBalance = previousBalance + netIncome
if (debtBalance > 0 && debtBalance <= debtMinimumPayment) // last payment is equal to or less than min payment, pay it off
thePayment = debtBalance
else if (debtBalance > 0) // we owe something greater than minimum payment
if (paymentAbove = 0 && checkingBalance > debtMinimumPayment) // the debt in the row above is paid off, now we begin applying extra funds to this debt
if (checkingBalance < debtBalance) // payoff as much as we have available
thePayment = checkingBalance
else // we have enough funds to payoff this debt - do it
thePayment = debtBalance
/if
else
thePayment = debtMinimumPayment
/if
else // debt already paid off
thePayment = 0
/if
不幸的是在須藤代碼上面我不能引用「netIncome」和「debtBalance」,因爲這些值計算使用「debtPayment」這正是我想要來計算。我的電子表格不允許使用這些單元格,並聲明不能引用引用此單元格的單元格。所以我希望在Excel中可能有一個財務功能可以幫助或以其他方式對這隻貓進行剝皮。
你問的是如何將收入應用於任何給定的債務=收入 - 費用=最大可能的支付? – SoftwareCarpenter 2014-09-25 15:17:09
關閉,但需要考慮計算的債務餘額。請參閱我上面的說明。 – ThinkCL 2014-09-25 18:30:42