Skip to content

ComputeTax

This method provides a way to calculate a tax within one method call. This may be useful for circumstances where a “stateless” object is desirable. All values which affect tax computation are included in the method call. This call does not alter any previously set property values.

Syntax

value = object. ( datafilename, selectedtax, earnings, ytdearnings, exemptions, stateexemptions, filingstatus, miscellaneous, auxiliary, supplemental, periods )

  • object - A TaxControl object.
  • value - A float result.
  • datafilename - A string indicating the file name for the tax table data. (see DataFilename)
  • selectedtax - A string naming the specific tax from the table to be computed. (see SelectedTax)
  • earnings - A float indicating the employee's earnings for this pay period. (see Earnings)
  • ytdearnings - A float indicating the employee's year-to-date earnings prior to this pay period. (see YTDEarnings)
  • exemptions - A float indicating the employee's federal exemptions. (see Exemptions)
  • stateexemptions - A float indicating the employee's state exemptions. (see StateExemptions)
  • filingstatus - An integer or FilingStatus constant indicating the employee's tax filing status. (see FilingStatus)
  • miscellaneous - A float value used in some tax formulas. (see Miscellaneous)
  • auxiliary - A float value used in some tax formulas. (see Auxiliary)
  • supplemental - A float value which should be non-zero (true) if the current earnings should be considered as supplemental pay, or zero (false) if they should not. (see Supplemental)
  • periods - A numeric expression which evaluates to the number of pay periods in one year. (see PayPeriodsPerYear)