GithubHelp home page GithubHelp logo

somestrhere / taxdeductor Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 28 KB

Program to calculate tax and NI contributions for self employed workers in the UK.

License: MIT License

Python 100.00%
python3 taxes uk console-application

taxdeductor's Introduction

About

The motivation behind taxDeductor was to provide a programming exercise; where I could develop my programming skills and get familiar with source control using Git Hub. The 1x version of the program was produced, with a view to developing a GUI version of the program using Windows Forms or WPF in C# at a later stage.

taxDeductor is setup with constants, which have been hard coded from information on tax and National Insurance (NI) rate information, taken from:

https://www.gov.uk/income-tax-rates/current-rates-and-allowances and

https://www.gov.uk/self-employed-national-insurance-rates

taxDeductor is designed for self employed workers within the UK, and will use the above information and user imputed values to calculate how much tax and NI contributions the user can expect to pay for the year.

Version 1.1.3 - 30th June 2017.

Important information

This program currently calculates a users National Insurance (NI) contributions due for the year based on Class 2 and Class 4 contributions; however, please bear in mind that; "The [UK] government has announced Class 2 NICs will be abolished from April 2018." (https://www.moneyadviceservice.org.uk/en/articles/tax-and-national-insurance-when-youre-self-employed)

License

Licensed under the MIT License.

taxdeductor's People

Contributors

somestrhere avatar

taxdeductor's Issues

Bug; output produced before receiving correct input from user

Similar to issue #2 there is a bug which is causing the program to produce the output before receiving the correct input from the user.

Bug found by;

  1. Pressing enter at first prompt
  2. Pressing y to enter a value for the whole year
  3. The program than skips to asking the user if they wish to declare any tax write off, rather than allowing the user to input their gross income for the year as expected.
  4. ... thus the program produces an incorrect output, because no income as been entered.

Can you please review this error and #2 for me @raby

Bug in error handling for initial user input

Found a bug, in what is probably the error handling for the initial user input.

Created in testing as follows:

User enters 'y' at the first prompt and then inputs 650 as a tax write-off. At the second prompt asking whether the user wants to enter monthly income values or a yearly value the user enters a number, instead of the expected 'y' or 'm' value. Error handling picked this up and asked the user again to enter 'y' or 'm'.

Upon entering 'y', the program displayed the "solutions" and print statements rather than asking the user to enter a gross income figure for the year.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.