EPFModel.swift 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // EPFModel.swift
  3. // Product Calculator
  4. //
  5. // Created by Suraj Kumar Mandal on 08/12/21.
  6. //
  7. import Foundation
  8. // MARK: - EPFModel
  9. class EPFModel {
  10. var clientDOB, planDate : String?
  11. var conUptoAge, epfWiDAge, salIncreaseMonth : Int?
  12. var currEPF, currEPS, monBasicDA, expSalInc, expEPFO, epfBalWithdraw, epsBalClientAge, totalInterestEarned, employeeCont, employerCont, currentInterestRate : Double?
  13. var lookupList = [EPFLookupList]()
  14. init(conUptoAge:Int, epfWiDAge:Int, salIncreaseMonth:Int, currEPF:Double, currEPS:Double, monBasicDA:Double, expSalInc:Double, expEPFO:Double, epfBalWithdraw:Double, epsBalClientAge:Double, totalInterestEarned:Double, employeeCont:Double, employerCont:Double, currentInterestRate:Double) {
  15. self.conUptoAge = conUptoAge
  16. self.epfWiDAge = epfWiDAge
  17. self.salIncreaseMonth = salIncreaseMonth
  18. self.currEPF = currEPF
  19. self.currEPS = currEPS
  20. self.monBasicDA = monBasicDA
  21. self.expSalInc = expSalInc
  22. self.expEPFO = expEPFO
  23. self.epfBalWithdraw = epfBalWithdraw
  24. self.epsBalClientAge = epsBalClientAge
  25. self.totalInterestEarned = totalInterestEarned
  26. self.employeeCont = employeeCont
  27. self.employerCont = employerCont
  28. self.currentInterestRate = currentInterestRate
  29. }
  30. }
  31. class EPFLookupList {
  32. let serialNumber, clientAge : Int?
  33. let refDate, financialYear, referenceMonth, displayDate : String?
  34. let monBasicDA, openingBalEPF, openingBalEPS, employeeContEPF, employerContEPF, employerContEPS, interestRateEPF, interestEarnedEPF, totalInterestEarnedEPF, closingBalEPF, closingBalEPS : Double?
  35. init(serialNumber:Int, clientAge:Int, refDate:String, financialYear:String, referenceMonth:String, displayDate:String, monBasicDA:Double, openingBalEPF:Double, openingBalEPS:Double, employeeContEPF:Double, employerContEPF:Double, employerContEPS:Double, interestRateEPF:Double, interestEarnedEPF:Double, totalInterestEarnedEPF:Double, closingBalEPF:Double, closingBalEPS:Double) {
  36. self.serialNumber = serialNumber
  37. self.clientAge = clientAge
  38. self.refDate = refDate
  39. self.financialYear = financialYear
  40. self.referenceMonth = referenceMonth
  41. self.displayDate = displayDate
  42. self.monBasicDA = monBasicDA
  43. self.openingBalEPF = openingBalEPF
  44. self.openingBalEPS = openingBalEPS
  45. self.employeeContEPF = employeeContEPF
  46. self.employerContEPF = employerContEPF
  47. self.employerContEPS = employerContEPS
  48. self.interestRateEPF = interestRateEPF
  49. self.interestEarnedEPF = interestEarnedEPF
  50. self.totalInterestEarnedEPF = totalInterestEarnedEPF
  51. self.closingBalEPF = closingBalEPF
  52. self.closingBalEPS = closingBalEPS
  53. }
  54. }