Advertisement
clockworkpc

Calculator for Assessment of Economic Loss

Mar 11th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.67 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/cpcmonster/bin/assessmentofloss.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011
  5. # www.clockworkpc.com.au
  6.  
  7. # You are entitled to the following four freedoms:
  8. # Freedom 0: To run this program for any purpose
  9. # Freedom 1: To study how this program works and change it to make it do what you wish
  10. # Freedom 2: To redistribute copies so you can help your neighbour
  11. # Freedom 3: To distribute copies of your modified version to others
  12.  
  13. preLossNetEarnings = input("What were the pre-loss net earnings? ")
  14. print ""
  15. postLossNetEarnings = input("What was the earning capacity reduced to? ")
  16. print ""
  17.  
  18. lostYears = input("How many years of work have been lost? ")
  19. print "It is agreed that",lostYears,"years of paid work have been lost."
  20.  
  21. lossClaim = preLossNetEarnings - postLossNetEarnings
  22.  
  23. print "The loss of net earnings is $",lossClaim
  24. print ""
  25.  
  26. positiveContingenciesPercentage = input("What was the percentage increase for positive contingencies? ") * 0.01
  27. print positiveContingenciesPercentage
  28. print ""
  29.  
  30. positiveContingencies = lossClaim * positiveContingenciesPercentage
  31. print "The percentage increase in positive contingencies is ", (positiveContingenciesPercentage * 100), "percent, which comes to $", positiveContingencies
  32. print ""
  33.  
  34. negativeContingenciesPercentage = input("What was the percentage decrease for negative contingencies? ") * 0.01
  35. print negativeContingenciesPercentage
  36. print ""
  37.  
  38. negativeContingencies = lossClaim * negativeContingenciesPercentage
  39. print "The percentage decrease in negative contingencies is ", (negativeContingenciesPercentage * 100), "percent, which comes to $", negativeContingencies
  40. print ""
  41.  
  42. lossClaimAfterContingencies = lossClaim + positiveContingencies - negativeContingencies
  43.  
  44. print "The loss of net earnings after contingencies is $", lossClaimAfterContingencies
  45. print ""
  46.  
  47. s28IReduction = 0.05
  48.  
  49. lossClaimAfters28IReduction = lossClaimAfterContingencies - (lossClaimAfterContingencies * s28IReduction)
  50.  
  51. print "The reduction stipulated by Section 28I is ",(s28IReduction * 100), "percent, which reduces the loss claim to $", lossClaimAfters28IReduction
  52.  
  53. avgWeeklyEarnings = input("What are the average weekly earnings for employees in Victoria? ")
  54. print ""
  55.  
  56. s28FMaxEarnings = avgWeeklyEarnings * 3
  57. print "The average weekly earnings in Victoria were at the time of the claim $",avgWeeklyEarnings, "which means the ceiling claimable loss of income is $", s28FMaxEarnings
  58. print ""
  59.  
  60. if lossClaimAfters28IReduction >= s28FMaxEarnings:
  61.     lossClaimafters28FMaxEarnings = s28FMaxEarnings
  62.     print "This salary exceeds the ceiling, it will have to be reduced to $", s28FMaxEarnings
  63.     print ""
  64. elif lossClaimAfters28IReduction < s28FMaxEarnings:
  65.     lossClaimafters28FMaxEarnings = lossClaimAfters28IReduction
  66.     print "This claimable loss of income does not exceed the ceiling stipulated by s28F, so the claimable amount is $",lossClaimAfters28IReduction
  67.     print ""
  68.    
  69. print "Just to be clear, the claimable loss of weekly net income at this point is $",lossClaimafters28FMaxEarnings
  70.  
  71. disregardAmount = input("How much has been instructed to disregard? ")
  72. lossClaimAfterdisregardAmount = lossClaimafters28FMaxEarnings - disregardAmount
  73. print ""
  74.  
  75. print "The amount to be disregarded is $",disregardAmount,"which further reduces the claimable loss of income to $",lossClaimAfterdisregardAmount
  76.  
  77. annualIncomeLoss = lossClaimAfterdisregardAmount * 52
  78. print "The annual loss of income is $", annualIncomeLoss
  79.  
  80. careerIncomeLoss = annualIncomeLoss * lostYears
  81. print "The claimable loss of income over the plaintiff's career comes to $",careerIncomeLoss
  82. print ""
  83.  
  84. print "Therefore, the total amount to be awarded is $",careerIncomeLoss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement