de.uplanet.lucy.server.auxiliaries
Class FinancialCalculations

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.FinancialCalculations

@VelocityCallable(value="singleton")
public final class FinancialCalculations
extends java.lang.Object

Version:
$Revision: 70982 $

Nested Class Summary
 class FinancialCalculations.ReturnValue
           
 
Constructor Summary
FinancialCalculations()
           
 
Method Summary
 java.util.List<FinancialCalculations.ReturnValue> calcDecliningAndLinear(IServerBridgeRequest p_request, int p_iAppId, int p_dgId, java.lang.String p_strRecId, double p_dDuration, double p_dPrice)
           
 java.lang.Double getAccumulatedInterest(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance)
           
 java.lang.Double getAccumulatedInterest2(double p_dInterestRate, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getAdditionalChargeOfLeasingInCurrency(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dInterestRate, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getAdditionalChargeOfLeasingInPercent(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dInterestRate, double p_dProcessingFee)
           
 java.lang.Double getAdditionalChargeOfLoanInCurrency(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dInterestRate, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getAdditionalChargeOfLoanInPercent(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dInterestRate, double p_dProcessingFee)
           
 java.lang.Double getEffectiveInterestRate1(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance)
           
 java.lang.Double getEffectiveInterestRate2(double p_dInterestRate, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getEffectiveInterestRate3(double p_dLeasingAmount, double p_dSupplementaryGrant, double p_dDecliningBalance, double p_dMonthlyInstallment, double p_dDurationInMonths)
           
 java.lang.Double getFaceAmount1(double p_dLeasingAmount, double p_dAdvance)
           
 java.lang.Double getFaceAmount2(double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getFinalAmount(double p_dAmount, double p_dInterestRate, int p_iDurationInDays)
           
 java.lang.Double getMonthlyInstallment(double p_dInterestRate, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getMonthlyInterestAmount(double p_dAmount, double p_dInterestRate)
           
 java.lang.Double getMonthlyLeasingInstallment(double p_dLeasingAmount, double p_dSupplementaryGrant, double p_dDecliningBalance, double p_dInterestRate, double p_dDurationInMonths)
           
 java.lang.Double getPaidAmounts1(double p_dMonthlyLeasingInstallment, int p_iDurationInMonths)
           
 java.lang.Double getPaidAmounts2(double p_dInterestRate, int p_iDurationInMonths, double p_dLeasingAmount, double p_dAdvance, double p_dProcessingFee)
           
 java.lang.Double getRequiredAmount(double p_dLeasingAmount, double p_dAdvance)
           
 java.lang.String getStartDate(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx, java.lang.String p_strAppGuid, java.lang.String p_strDgGuid, java.lang.String p_strRecId, java.lang.String p_strFieldSysident)
           
 java.lang.Double getYearlyInterestAmount(double p_dAmount, double p_dInterestRate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinancialCalculations

public FinancialCalculations()
Method Detail

getMonthlyInterestAmount

public java.lang.Double getMonthlyInterestAmount(double p_dAmount,
                                                 double p_dInterestRate)

getYearlyInterestAmount

public java.lang.Double getYearlyInterestAmount(double p_dAmount,
                                                double p_dInterestRate)

getFinalAmount

public java.lang.Double getFinalAmount(double p_dAmount,
                                       double p_dInterestRate,
                                       int p_iDurationInDays)

getFaceAmount1

public java.lang.Double getFaceAmount1(double p_dLeasingAmount,
                                       double p_dAdvance)

getPaidAmounts1

public java.lang.Double getPaidAmounts1(double p_dMonthlyLeasingInstallment,
                                        int p_iDurationInMonths)

getAccumulatedInterest

public java.lang.Double getAccumulatedInterest(double p_dMonthlyLeasingInstallment,
                                               int p_iDurationInMonths,
                                               double p_dLeasingAmount,
                                               double p_dAdvance)

getEffectiveInterestRate1

public java.lang.Double getEffectiveInterestRate1(double p_dMonthlyLeasingInstallment,
                                                  int p_iDurationInMonths,
                                                  double p_dLeasingAmount,
                                                  double p_dAdvance)

getAdditionalChargeOfLeasingInPercent

public java.lang.Double getAdditionalChargeOfLeasingInPercent(double p_dMonthlyLeasingInstallment,
                                                              int p_iDurationInMonths,
                                                              double p_dLeasingAmount,
                                                              double p_dAdvance,
                                                              double p_dInterestRate,
                                                              double p_dProcessingFee)

getAdditionalChargeOfLeasingInCurrency

public java.lang.Double getAdditionalChargeOfLeasingInCurrency(double p_dMonthlyLeasingInstallment,
                                                               int p_iDurationInMonths,
                                                               double p_dInterestRate,
                                                               double p_dLeasingAmount,
                                                               double p_dAdvance,
                                                               double p_dProcessingFee)

getRequiredAmount

public java.lang.Double getRequiredAmount(double p_dLeasingAmount,
                                          double p_dAdvance)

getFaceAmount2

public java.lang.Double getFaceAmount2(double p_dLeasingAmount,
                                       double p_dAdvance,
                                       double p_dProcessingFee)

getMonthlyInstallment

public java.lang.Double getMonthlyInstallment(double p_dInterestRate,
                                              int p_iDurationInMonths,
                                              double p_dLeasingAmount,
                                              double p_dAdvance,
                                              double p_dProcessingFee)

getPaidAmounts2

public java.lang.Double getPaidAmounts2(double p_dInterestRate,
                                        int p_iDurationInMonths,
                                        double p_dLeasingAmount,
                                        double p_dAdvance,
                                        double p_dProcessingFee)

getAccumulatedInterest2

public java.lang.Double getAccumulatedInterest2(double p_dInterestRate,
                                                int p_iDurationInMonths,
                                                double p_dLeasingAmount,
                                                double p_dAdvance,
                                                double p_dProcessingFee)

getEffectiveInterestRate2

public java.lang.Double getEffectiveInterestRate2(double p_dInterestRate,
                                                  int p_iDurationInMonths,
                                                  double p_dLeasingAmount,
                                                  double p_dAdvance,
                                                  double p_dProcessingFee)

getAdditionalChargeOfLoanInPercent

public java.lang.Double getAdditionalChargeOfLoanInPercent(double p_dMonthlyLeasingInstallment,
                                                           int p_iDurationInMonths,
                                                           double p_dLeasingAmount,
                                                           double p_dAdvance,
                                                           double p_dInterestRate,
                                                           double p_dProcessingFee)

getAdditionalChargeOfLoanInCurrency

public java.lang.Double getAdditionalChargeOfLoanInCurrency(double p_dMonthlyLeasingInstallment,
                                                            int p_iDurationInMonths,
                                                            double p_dInterestRate,
                                                            double p_dLeasingAmount,
                                                            double p_dAdvance,
                                                            double p_dProcessingFee)

calcDecliningAndLinear

public java.util.List<FinancialCalculations.ReturnValue> calcDecliningAndLinear(IServerBridgeRequest p_request,
                                                                                int p_iAppId,
                                                                                int p_dgId,
                                                                                java.lang.String p_strRecId,
                                                                                double p_dDuration,
                                                                                double p_dPrice)
                                                                         throws java.lang.Exception
Throws:
java.lang.Exception

getStartDate

public java.lang.String getStartDate(de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext p_ctx,
                                     java.lang.String p_strAppGuid,
                                     java.lang.String p_strDgGuid,
                                     java.lang.String p_strRecId,
                                     java.lang.String p_strFieldSysident)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getEffectiveInterestRate3

public java.lang.Double getEffectiveInterestRate3(double p_dLeasingAmount,
                                                  double p_dSupplementaryGrant,
                                                  double p_dDecliningBalance,
                                                  double p_dMonthlyInstallment,
                                                  double p_dDurationInMonths)

getMonthlyLeasingInstallment

public java.lang.Double getMonthlyLeasingInstallment(double p_dLeasingAmount,
                                                     double p_dSupplementaryGrant,
                                                     double p_dDecliningBalance,
                                                     double p_dInterestRate,
                                                     double p_dDurationInMonths)


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.