Fixes suggested by raveneye for GetAvailableCredit  & GetBlocksToMaturit...

...y Bug