The current formula for Opening Retained Earnings is:
'Opening Retained Earnings/Accumulated(Losses)' = 'Closing Retained Earnings/Accumulated(Losses)' - 'Share Buy Back - Premium/(Discount) Portion' - 'Prior Period Adjustment to Profit/(Loss)' - 'Net Profit/(Loss) to Accumulate'