Python Forum
Business formulas more help needed!!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Business formulas more help needed!!
#1
So, I need to get each of these formulas with the numbers that are listed below and I believe I have figured out the first one, but, I'm not 100% sure where to go from here or with the other formulas. He helped me some with the first but now I'm stuck. Any help is welcomed!

# Future Value of Annuity p = 1000 r = 2 / 100 n = 5 future_value = p*((1+(0.01*r)) ** n) print(round(future_value,2)) #$5,204.04 #FV of Annuity -Continuous Compounding CF = 1000 r = 6/100/12 t = 12 import math print(math.e) print (math.e ** 2) print (math.exp(2)) #Annuity (FV)-Solve for n FV= 19600 r = 5/100 p = 1000 print (math.log(math.exp(3))) #Annuity Payment PV = 100000 r = 5/100 n = 10 print (p)
Reply
#2
Help us to help you.  Are you getting errors?  Or is your output not what you expected?
In the second case, what output do you currently get, and what are you expecting to get?
Reply
#3
So, this is the code that I have gotten together for each of the formulas. But i'm getting an error for line 5 and i'm not sure why. Any helpp?

# future value of annuity p = 1000 r = 2/100 n = 5 FV= p ((1+r) ** n - 1/r) print(FV) #FV of annuity- continuous compounding CF= 1000 r = 6/100/12 t = 12 import math FV= CF * ((1 + (r/n)) ** (n*t)) print (FV) #Annuity (FV)- solve for n import math FV= 19600 r = 5/100 p = 1000 n = math.log(1 + FV*r / p) / math.log(1+r) print(n) # annuity payments PV= 100000 # how much r = 5/100 # interest rate n = 10 #how many years p = r * (PV) / ((1 + r) ** n - 1) print(p)

Whoops, in line 5 im suppose to have a * in between the p and the rest of the formula. But, I'm still not getting the correct answers
Reply
#4
Please do not start new threads when they concern the same topic and code.

As to the problem, what is the output you are getting and what output do you expect?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#5
(Aug-28-2017, 11:57 PM)sparkz_alot Wrote: Please do not start new threads when they concern the same topic and code.

sorry newbie!!

in the order of the code
5204.0401600000005
12336.416801016496
14.000708059400562
12350.45749654566
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Updating formulas in Excel - best solution MasterOfDestr 4 6,351 Mar-11-2024, 01:02 PM
Last Post: MasterOfDestr
  plotting based on the results of mathematical formulas Timur 1 1,299 Feb-08-2024, 07:22 PM
Last Post: Gribouillis
  openpyxl insert list with formulas Irv1n 1 2,567 Sep-16-2021, 08:10 AM
Last Post: Irv1n
  Appropriate data-structure / design for business-day relations (week/month-wise) sx999 2 4,355 Apr-23-2021, 08:09 AM
Last Post: sx999
  Generating random business cards Inkanus 2 3,668 Dec-08-2020, 09:41 PM
Last Post: buran
  Help with a query - to show possible formulas Yanos 1 2,796 Nov-02-2020, 12:18 AM
Last Post: jefsummers
  SAP Business Objects Query SQL AsaithambiThiyagarajan 0 3,386 Jan-08-2020, 12:14 AM
Last Post: AsaithambiThiyagarajan
  How to ignore formulas when reading excel file SriMekala 3 9,260 Aug-16-2019, 04:04 PM
Last Post: buran
  python 3 math formulas where to use () Python101 1 3,373 Jun-09-2019, 09:54 PM
Last Post: micseydel

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.