?
Solved

Coumpounding Value

Posted on 2014-03-04
17
Medium Priority
?
232 Views
Last Modified: 2014-03-10
Hi Experts,

as I know how to calculate compounded  interest on  investment & get portfolio value  in excel .Coumpounded Interest Value
But is there any way to deduct Tax percentage on interest earn every year & deduct some lump sum amount from interest every year.

There will be two situation - Deduct lump sum amount & then calculate tax % every year

& tax % & then deduct lump sum amount.

Thanks
0
Comment
Question by:Naresh Patel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 6
17 Comments
 
LVL 24

Expert Comment

by:Steve
ID: 39906120
I am not sure there is a simple formula which can be applied to take into account the deductions...

The Tax is easy enough as it just reduces the Interest rate (so 9% becomes 8.1%)
=D2*((1+((D3*(1-D7))/D4))^(D4*D5)) where D7 is the Tax.

But the Deduction as a fixed value before or after tax, you may need to go line by line to calculate the net effect.
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39906129
Sir.The_Barman,

I am on way back to home.let me reach home and I will get back to you.

Thanks
0
 
LVL 24

Expert Comment

by:Steve
ID: 39906131
Cool, I have looked at the posibility of a single formula, but I do not think it will be simple.

Attached is some workings I have done so far.
Book1.xlsx
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 8

Author Comment

by:Naresh Patel
ID: 39906135
But Sir but  your formula for converting amount in to words ( crore and all ) which is I guess still open. In that you have produced such a very big formula.it can't happen to this calculations?

Thanks
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39906140
Oops posting from mobile so don't see your comment.

Thanks
0
 
LVL 24

Expert Comment

by:Steve
ID: 39906331
I have no doubt it can be done.
It is just not simple.
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39907425
i had seen your calculation, yes it is perfect.....but if it is in one formula then it will be awesome. if it is possible then i will wait take your time. my next question is relate to this only, this is strait 100000 investment & 15 year term period, just need to know if i add up every year 100000 till 15 year. what will be the total value of investment. tax rate is same & lump sum amount is same.

i will ask separate question for that criteria.

Thanaks
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39911472
How bat code instead of formula. Then it is possible in one cell? I am talking about Function.
like this =PFV(Principle amount, interest rate, compounding frequency for year, Tax Rate, Lump Sum, investment Period) for Tax first then lump sum.

=PFV(Principle amount, interest rate, compounding frequency for year, Lump Sum, Tax Rate, investment Period)


Thanks
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39911955
are you with me sir?
0
 
LVL 24

Expert Comment

by:Steve
ID: 39912737
VBA would be far easier to do...

I will create two functions for you...

PFVt for tax first
PFVd for decreasing lump first.

I will try to get these done over this weekend.

ATB
Steve.
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39912763
Okie. Happy to hear that.but it can't be only one function "PFV" ? and manage lump and tax in its range order as described in my previous post. Just asking do as per your convenience.


Thank you
0
 
LVL 24

Accepted Solution

by:
Steve earned 2000 total points
ID: 39916091
OK, the code in the attached workbook is below:

Function PFVd(princilpal As Double, APR As Double, numberYears As Long, AnnualFreq As Long, Lump As Double, TaxRate As Double) As Double

Dim n As Long 'number of periods
Dim r As Double 'percentage rate per period
Dim x As Long
Dim curValue As Double
Dim cinterest As Double

n = numberYears * AnnualFreq
r = APR / AnnualFreq
curValue = princilpal

For x = 1 To n
    cinterest = curValue * r
    'Lump sum first
    cinterest = cinterest - Lump
    cinterest = cinterest * (1 - TaxRate)
    
    curValue = curValue + cinterest
Next x
PFVd = curValue

End Function

Function PFVr(princilpal As Double, APR As Double, numberYears As Long, AnnualFreq As Long, Lump As Double, TaxRate As Double) As Double

Dim n As Long 'number of periods
Dim r As Double 'percentage rate per period
Dim x As Long
Dim curValue As Double
Dim cinterest As Double

n = numberYears * AnnualFreq
r = APR / AnnualFreq
curValue = princilpal

For x = 1 To n
    cinterest = curValue * r
    'Rate first
    cinterest = cinterest * (1 - TaxRate)
    cinterest = cinterest - Lump
    
    curValue = curValue + cinterest
Next x
PFVr = curValue

End Function

Open in new window


The reasons for two functions is that the function would not know the difference between a Lump and a Tax rate. So it is easier to remove all ambiguity and create two functions.

See attached workbook and ask if you need more info.
Compounding.xlsm
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39916714
Yes it is perfect, only one thing-  it is possible? when dealing with this two functions there possible to see function argument below same as in we see in default function of MS Excel?

i.e.I mean to say this
0
 
LVL 24

Expert Comment

by:Steve
ID: 39916885
It is possible (I believe) if the UDF is registered using VBA.
You can simply press the function symbol to the left of the formula area, this will bring up a dialog box to aid in filling the function.
Is this critical for you? (to have the arguments appear like an in-built function)
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39916921
It is possible (I believe) if the UDF is registered using VBA.

I dint understand
You can simply press the function symbol to the left of the formula area, this will bring up a dialog box to aid in filling the function.
Is this critical for you? (to have the arguments appear like an in-built function)
it Is ok. I thought it will appear like defaults function.

Thanks
0
 
LVL 8

Author Closing Comment

by:Naresh Patel
ID: 39916970
As usual perfect. only one thing I dint get your last post. via Fx menu I can see arguments but if I type directly in cell I dint see function arguments as MS Excel defaults functions have.


Thanks
0
 
LVL 8

Author Comment

by:Naresh Patel
ID: 39917376
Sir Steve,

This is part 2 & last part of this question series. will pls look in to this Part 2

Thanks
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question