Skip to content

Instantly share code, notes, and snippets.

@rschildmeijer
Created October 1, 2012 19:08
Show Gist options
  • Save rschildmeijer/3813761 to your computer and use it in GitHub Desktop.
Save rschildmeijer/3813761 to your computer and use it in GitHub Desktop.
calculate the swedish capital insurance tax
curl -silent "https://www.riksgalden.se/sv/omriksgalden/statsskulden/aktuella-siffror/statslanerantan/"|grep -i -A2 "Medelv&#228;rde hittills i &#229;r"|tail -n1|awk 'BEGIN{FS="[<|>]"} {gsub(",", "."); printf("%f\n", $7*0.27)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment