PS Cost Forecast processes the actual and plan values through an algorithm that redistributes the remaining plan in some fashion and writes it to CO Version 110. It can use the Forecast Dates and Forecast Work as well if they are entered during confirmation.
As Paulo said, read the SAP help on the calculations.