Consolidate code for splitting time; fix typo in matrix overflow detection; needs testing
Consolidate code for splitting time; fix typo in matrix overflow detection; needs testing

UPDDI/mps-database-server,UPDDI/mps-database-server,UPDDI/mps-database-server,UPDDI/mps-database-server