A trial balance is prepared at the end of the accounting period or at the end of each month, the balances of the ledger accounts are extracted and is prepared to test as to whether the total debits are equal to total credits. Its prepared to check the arithmetical accuracy of the books of account.