Ending retained earnings for a period is equal to: Ending retained earnings for a period is equal to: