Skip to content

Ambiguous tax ranges in Part 2:Gift tax calculator exercise. Specify inclusive/exclusive boundaries #21

@kulajthefaber

Description

@kulajthefaber

In Part 2 : Gift tax calculator exercise the boundaries of value ranges are ambigious. This part of the problem description "If the total value of the gifts you receive from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax." implies that the first boundary is inclusive and the second is exclusive (since the second boundary is repeated as the frst one in the following ranges so that must be exclusive : ex: (50 - 100] ). But the solution of the exercise has used second boundary as the inclusive boundary rather than the first one (ex: [50 - 100)). The test code works fine in both cases but the clarity can be improved throug clear indication of the ranges ( either (50-100] or [50 - 100] ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions