Framework works, surplus calculations seem to work. Input needs to be formatted correctly...