{"id":879,"date":"2009-07-14T18:05:03","date_gmt":"2009-07-15T02:05:03","guid":{"rendered":"http:\/\/www.stevenbrown.ca\/blog\/?p=879"},"modified":"2009-07-14T18:05:03","modified_gmt":"2009-07-15T02:05:03","slug":"canadian-income-tax-2009","status":"publish","type":"post","link":"https:\/\/www.stevenbrown.ca\/blog\/archives\/879","title":{"rendered":"Canadian Income Tax 2009"},"content":{"rendered":"<p>If you have any trouble understanding how income tax works or is calculated, play around on <a href=\"https:\/\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/itax\/canitax2009.html\"><strong>this webpage<\/strong><\/a> and see if it helps you.  (It probably won&#8217;t, but you might have fun not learning anything!)  It lets you dynamically compare different income taxes within Canada using a pretty graph and it lets you calculate your own (simplified) tax results, whether your income is salary or hourly based.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"880\" data-permalink=\"https:\/\/www.stevenbrown.ca\/blog\/archives\/879\/canitax\" data-orig-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?fit=731%2C355&amp;ssl=1\" data-orig-size=\"731,355\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"canitax\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?fit=300%2C145&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?fit=731%2C355&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?resize=300%2C145&#038;ssl=1\" alt=\"canitax\" title=\"canitax\" width=\"300\" height=\"145\" class=\"alignnone size-medium wp-image-880\" srcset=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?resize=300%2C145&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2009\/05\/canitax.png?w=731&amp;ssl=1 731w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>Why Did I do this?<\/h3>\n<p>I didn&#8217;t do my taxes; an accountant did.  But when I was reading about them, I stumbled upon a couple webpages and became interested in the differences among the provinces and territories within Canada and<br \/>\ndifferent income ranges.  That&#8217;s what started this mini Javascript project.<\/p>\n<h3>This is not a work of art<\/h3>\n<p>I wrote it mostly on the bus using my recently acquired Dell Mini 12 netbook (on Windows XP&#8230; ew).  And from that experience, I can firmly say that writing even very simple things, it&#8217;s good to have a fair amount of time set aside in a relaxed environment.  I would write a couple things here and there for 20 minutes or so&#8230; then not look at it again for a few days&#8230; it took me 5 minutes to figure out what I wanted to do the next time I opened it.  The only times I made significant progress was when I sat down for more than an hour.  The code wasn&#8217;t really designed, it was just&#8230; written.  It&#8217;s messy, there&#8217;s lots of hard-coding, poorly named fields and variables (didn&#8217;t help with figuring out what I was doing last time), and if it were anything serious, I&#8217;d rewrite large chunks of it.  And make it prettier.  But as it stands, it&#8217;s just kinda fun.  \ud83d\ude42<\/p>\n<p>In addition to being curious about the taxes in Canada, I was also interested in trying a javascript graphing library. I had been impressed with different javascript-generated graphs on the web and wondered how difficult they were to create.  I used FLOT (with lots of copying and pasting from examples), and it seemed to work alright, but it depends on JQuery, which I wasn&#8217;t familiar with.  Actually, I&#8217;m still not very familiar with it&#8230; and wrote almost everything in regular javascript. I know it&#8217;s worth learning, but I guess I&#8217;ll save<br \/>\nthat for another time. \ud83d\ude42<\/p>\n<p>Let me know of any errors in tax calculation.. or code design, for that matter.  There&#8217;s lots of those, but I&#8217;m sure I&#8217;m not aware of all of them!  hah.<\/p>\n<p><em>(I&#8217;ve been sitting on this post for about 2 months now.  hah! Figured I might as well publish it.)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have any trouble understanding how income tax works or is calculated, play around on this webpage and see if it helps you. (It probably won&#8217;t, but you might have fun not learning anything!) It lets you dynamically compare different income taxes within Canada using a pretty graph and it lets you calculate your&hellip; <a class=\"more-link\" href=\"https:\/\/www.stevenbrown.ca\/blog\/archives\/879\">Continue reading <span class=\"screen-reader-text\">Canadian Income Tax 2009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,1,11],"tags":[219,222,221,208,220,66,247,223],"class_list":["post-879","post","type-post","status-publish","format-standard","hentry","category-geek","category-general","category-projects","tag-charts","tag-graphs","tag-images","tag-javascript","tag-money","tag-programming","tag-projects","tag-taxes","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4jEMb-eb","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/comments?post=879"}],"version-history":[{"count":12,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/879\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/879\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/media?parent=879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/categories?post=879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/tags?post=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}