Loss Relief on Cessation of Company

Company's trading loss for 3 month period on cessation is £39,702 while its Profit for the 12month period immediately before this 3 month cessation period was £48,173 and the year before was £6,367. How much Loss on cessation can be relieved?