preparation of trial balance at the end of the period is most closely related to