For instance, there is a circumstance where X gets payments until it has received 30% of total LTD payments.
So if there were $100 of prior payments to Y, X would get $30.
But then total payments would be $130, so X would receive an additional $9.
But then total payments would be $139, so X would receive an additional $2.7.
etc. etc.
Eventually the additional payments to X would be de minimus.. say the de minimus threshold would be $1.
Any insights as to how I can program this in excel?
Thanks!
Related
I took a loan from the bank in the amount of 200,000 USD. The loan is for 17 years.
I repay the loan through regular payments every month. The monthly interest rate on the loan is 0.4%.
At the end of the loan period, in addition to the last payment, I pay an additional 10,000 USD.
What is the regular monthly payment I will make each month?
Can you explain me please how to use this formula?
As you are paying the last 10k at the end, that is effectively the Future Value of the loan when it terminates. So you can enter that as the fv in the PMT function:
=PMT(0.004,17*12,-200000,10000)
or 1404.25
Note that the signs of the Pv and Fv must be opposite in this case. So
if you want to show your PMT as a negative value, you must use +200000
and -10000.
I have a subscription with proration. So for the first months, the client is charged 10 euros and for the last month the client is charged 9.99. Sometimes, some coupons are applied and the client is charged 5 euros. How can I get the total of all the amounts paid by this customer for this subscription? I need to get the sum of 10 x (number of months) + 9.99 + 5 x (number of months where coupons was applied).. In other words, I need to get all the amount of all the money he previously paid until now.
You can retrieve all the invoices for a given Customer https://stripe.com/docs/api/invoices/list. If you want the invoices for a particular Subscription, pass in the subscription parameter.
You can then iterate through all the invoices and sum the amounts paid. Note that you can only retrieve up to 100 invoices.
I was given tens of thousands of bills charged to customers. I am trying to determine if the bills are potentially accurate. The only data I have is the actual bill itself. Here's where things get complicated. There are four scenarios, each with their own nuances:
Scenario 1 Nuances:
Base Fee of $10 * the amount of items bought * the number of deliveries (maximum amount of items bought would be 10 and the maximum number of deliveries would be 7)
If the amount of items bought exceeds 1, the total bill is discounted by 20%
If the boxes are recycled, the total bill is further discounted by 15%
If the good is over 15 pounds, an additional charge of $10 will be assessed per each item over 15 pounds (maximum amount of items would be 10)
If there is no adequate port for delivery, an additional $50 per hour will be charged per delivery (maximum hours would be 3)
Scenario 2 Nuances:
Business that share a port of delivery for the second service will be charged $11 per item
If the business does not share a port of delivery, the fee is $13 per item. Each additionally delivery for a business that does not share a port is $15 per delivery, in addition to each item costing $13 (maximum deliveries would be 7 and maximum amount of items would be 8).
You see where I am going with all of this. The next two scenarios are just as lengthy. Sadly, no information besides the total bill is given. We don't know which scenario the bill belongs to, the number of items, etc., just a single column of the invoice. How would I go about determining all potential costs from each scenario to maybe index the invoice and see if there is a match? Any help on this would be amazing.
I tried creating an index where I wrote out multiple scenarios. For example, a column with the number of items, the number of deliveries, a discount for > 1 item bought, a recycling discount, etc... After attempting this for two hours, I realized this may not be the best method. My first row would be 1 item, 1 delivery, 0% discount for > 1 item bought, and 0% discount for recycling. Next would be 2 items bought, 1 delivery, 20% discount for > 1 item bought, 0% discount for recycling. This is seemingly impossible to do for everything.
My expected output is "Y" if the invoice total matches one of the potential costs from the index, "N" if not.
You can write a macro to calculate every possible scenario. Write a macro with nested loops.
The outside loop is the quantity, such as For ItemQty = 1 to 100 (or to some other likely maximum).
The inside loops are the scenarios and nuances, such as For BoxesRecycled = 0 to 1. Each loop modifies the total, such as Total = Total - (BoxesRecycled * 0.15 * Total).
In the middle of all the loops is code that writes a line with the quantity, nuances, and total.
You will need to match the sequence in which charges and discounts were applied and the way the total was rounded. Probably the sequence was discounted 20%, then discounted 15%, then rounded. But maybe it was discounted 20%, then rounded, then discounted 15%, then rounded. If you don't match the sequence and rounding, then your total might be 1 cent different from an actual invoice.
I have this excel formula:
=PMT(B13/12,$C$5,-B12,0,0)
What does this formula do exactly?
As described in the documentation
Calculates the payment for a loan based on constant payments and a
constant interest rate.
Syntax
PMT(rate,nper,pv,fv,type)
For a more complete description of the arguments in PMT, see the PV
function.
Rate is the interest rate for the loan.
Nper is the total number of payments for the loan.
Pv is the present value, or the total amount that a series of
future payments is worth now; also known as the principal.
Fv is the future value, or a cash balance you want to attain after
the last payment is made. If fv is omitted, it is assumed to be 0
(zero), that is, the future value of a loan is 0.
Type is the number 0 (zero) or 1 and indicates when payments are
due.
In context =PMT(B13/12,$C$5,-B12,0,0)
B13 is the annual interest rate (so the monthly rate is B13/12)
C5 is the number of months of payments
-B12 is the present value
0 is the future value
Payments are calculated as if they are due at the end of the month
If you had tried Google or looked at the help that is built into Excel you would have found that it's a function to Calculates the payment for a loan based on constant payments and a constant interest rate. For reference you can look it up here.
From http://office.microsoft.com/en-us/excel-help/pmt-HP005209215.aspx:
Calculates the payment for a loan based on constant payments and a
constant interest rate.
Syntax
PMT(rate,nper,pv,fv,type)
For a more complete description of the arguments in PMT, see the PV
function.
Rate is the interest rate for the loan.
Nper is the total number of payments for the loan.
Pv is the present value, or the total amount that a series of
future payments is worth now; also known as the principal.
Fv is the future value, or a cash balance you want to attain after
the last payment is made. If fv is omitted, it is assumed to be 0
(zero), that is, the future value of a loan is 0.
Type is the number 0 (zero) or 1 and indicates when payments are
due.
I'm trying to figure out what rate of return I would need on an investment in order to compare to paying down a mortgage.
I have calculated the change in the mortgage - I know how much money I'd save by the end of the loan term and how much money I'd need to put in. I'm trying to compare that to an equivalent investment - treat any lump sum payment as the principal of an investment, treat any monthly overpayment as a monthly contribution to an investment, plug in the final value, and solve for the effective rate of return.
I've looked at the RATE and the IRR commands. IRR seems close to what I want, but it wants a series of values for the input flows, but I have it as a periodic regular investment.
For an example with numbers - if I pay an extra $100 a month on the mortgage for 120 months, I can save $10000 in total cost. What command can I use to calculate this in terms of an investment? If I invest $100 a month for ten years and end up with $10000, what was my annualized rate of return?
If I start with principal PV invested at rate R, I contribute monthly payment M for N months, and I end up with final value FV at the end of those N months, I'd like to solve for R given the other variables.
I know there's another factor regarding the mortgage interesting being tax deductible - I'll look at worrying about that after I figure this part out.
:)
Your monthly return is given by this RATE formula
number of periods = 120 (10*12)
contributions of $100 per period
future value of 10,0000
=RATE(10*12,-100,0,10000)
=-0.32% per month
Note as a check =RATE(10*12,-100,0,12000) = 0
which is equivalent to an annual rate of
=1-(1-0.32%)^12
=-3.73%