Food stamp calculator as a pedagogical tool

To cut to the chase, this post is about a prototype food stamp calculator for use by advocates, built with PHP and JavaScript. (It works fine in Firefox; the design and functions are buggy in IE.)
Here’s the back story:
One of the most successful content projects undertaken by Legal Services of Northern California has been its web-based California Food Stamp Guide (FSG). As part of that project, we had discussions about building a California-specific food stamp calculator, and then further discussions about the purpose and function of such a thing. Should it be client or advocate oriented? In either case, should it be more of an “estimator,” i.e., a screening tool to get a reasonable, in-the-zone estimate of monthly benefits? Or a tool to make more precise food stamp budget calculations, such that one could check and challenge the calculations in individual cases made by a local welfare office? Among the editorial team that worked on the FSG, there was great interest in having a calculator, but no actual consensus emerged about how best to approach it.
One distinctive idea did emerge, however. Rosemary French at the Benchmark Institute promoted the idea of a calculator that would serve as a pedagogical tool. Her notion incorporated these key elements to make it an effective advocate teaching tool: The calculator should make accurate, complete calculations based on all the possible economic and circumstantial elements that make up an actual monthly benefits determination; it should reveal how changes in a relevant dollar amount or in the application of a client’s individual circumstances (e.g., medical expenses, daycare expenses, etc.) affect the outcome; and it should display the calculation as a whole, on a single page, rather than in steps that cannot be viewed in relation to each other.
Rosemary’s idea was the one that inspired us to try something different from the array of other food stamp calculators out there. For various reasons we never quite completed the project, but we do want to share with the larger advocacy community what we did accomplish: a prototype for a California-specific advocate tool for calculating monthly benefits that honors its pedagogical purposes. (Again, it works as intended in Firefox; not so much in IE.)
Hopefully, use by advocates should be self-explanatory. Start entering numbers and selecting options and the budget calculations shall be revealed dynamically, on the right. The calculations are all based on current food stamp program eligibility standards in California, but can only be made accurately for households in which everyone is eligible; the prototype does not make calculations for mixed households in which one or more members are ineligible. There are Ajaxy pop-up help pages that can be used to provide explanations and links to other resources; one can also save a calculation as a bookmark or print out the results; and other touches.
The PHP and Javascript coding, which includes use of jQuery, was done by the esteemed Scott Trudeau. (Ed Lachgar, on the LSNC IT staff, built the PHP print functions. The layout and visual design were done here at the Webdogs 2.0 labs, so don’t blame Scott for what it looks like.) If anyone has questions or interest about the PHP and JavaScript coding, feel free to contact Scott for details, explanations, etc.
Although we have no immediate plans to do more with this project, we are posting all the prototype code for those who may be interested in adapting, modifying or just playing with it. It’s yours for the taking:
