Skip to content

sistephens/calculators

 
 

Repository files navigation

Child Benefit tax calculator

This calculator reports how much child benefit tax you are entitled during a tax year.

There is a cut-off date of 7 January 2013. This is the date High Income Child Benefit Tax Charge came in effect. This means that if the 2012 tax year is selected the calculator will only calculate the child benefit you are entitled to from 7 Jan 2013 to 5 Apr 2013, not for the entire tax year.

Running the app

./startup.sh

To run the app with the live content store and static

./startup.sh --live

The only content in this app is child-benefit-tax-calculator/main

Running tests

bundle exec rake spec

Deploying changes for Factcheck

When making bigger changes that need to be tested or fact-checked before they are deployed to GOV.UK you might want to deploy the branch with changes to Heroku.

Start by creating a GitHub pull request with the changes you want to deploy.

Make a note of the pull request number and use the startup_heroku.sh script to deploy your changes to Heroku:

$ PR=<number-of-pull-request> ./startup_heroku.sh

This script will create and configure an app on Heroku, push the current branch and open the child-benefit-tax-calculator/main Calculator in the browser.

Dependencies

  • publishing-api: this app sends data to publishing-api to register URLs.

About

Serves the Child benefit tax calculator on GOV.UK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 81.7%
  • HTML 12.8%
  • JavaScript 2.3%
  • CSS 2.1%
  • Shell 1.1%