PersonalAllowance: The Personal Allowance Class

Description Usage Format Fields Methods Examples

Description

This class describes the personal allowance that a person has in the UK tax system. In the UK the personal allowance is how much you can earn tax free. However the allowance is withdrawn at the given rate over the threshold. Note this is a simplification of the actual UK tax system. For example this class ignores the married couples allowance.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Fields

allowance

The amount of the allowance.

threshold

The income at which the allowance starts to be withdrawn.

rate

The rate at which the allowance is withdrawn.

Methods

amount

Determines how much personal alowance a person has dependant upon their income.

Examples

1
2
3
4
5
6
personalAllowance2017 <- PersonalAllowance$new(
  base = 11500,
  threshold = 100000,
  withdrawalRate = 0.5
)
personalAllowance2017$amount(101000)

ianksalter/uktax documentation built on March 19, 2020, 5:45 a.m.