I came across this tonight while reading. If you are just going to skim through the article, scroll down to the payroll calculating routine and table.
Since thinBasic has eval command this might be something neat to work into tap into its power.

scroll to: Example Control Table for Payroll

http://www.geocities.com/tablizer/cntrl1.htm