Learn R Programming

optiRum (version 0.41.1)

taxYear: Returns the UK financial tax year for a given date

Description

Based on UK tax year April 6 - April 5, this returns the year (YYYY) the tax period covers. Tax Year start date can be overriden.

Usage

taxYear(date = Sys.Date(), start = "04-06")

Arguments

date

Date to be checked

start

Provide the month & day that will be used as the first tax day (mm-dd)

Value

year The financial year

See Also

Other tax: calcNetIncome()

Examples

Run this code
# NOT RUN {
# single set of values
taxYear(Sys.Date()) 

# vector of values
taxYear(seq(Sys.Date(),by=1,length=500))

# }

Run the code above in your browser using DataLab