There has been considerable effort expended, and considerable effort wasted, in attempts to develop software to do "financial stuff."
Notable efforts include:
A "check book balancer" package that uses TCL, Perl, and Tk.
Old, but mature.
A would-be successor to CBB