Skip to content

Add arg to allowance() whether or not to round return value to nearest £10 #20

@Mark-Eis

Description

@Mark-Eis

function(taxable, deficit = NULL, opts = tax_opts()) {

function(taxable, deficit = NULL, round10 = TRUE, opts = tax_opts()) {

allow - max(min(((sum(band) + 1 - taxable) / 2 + 9), offset), 0) # adjustment as for incometax()

    with(opts,
        {
            ...
            allow <- allow - max(min(((sum(band) + 1 - taxable) / 2 + 9), offset), 0)        # adjustment as for incometax()     
            if (round10) round(allow, -1) else allow 
        }
    )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions