For calculating planned vs. actual data you will need to follow the below steps:
First identify the metrics you want to calculate (sales, revenue, expenses, etc)
Gather both the forecasted and actual data for the analysis
Now compare both data sets and calculate variances