How the calorie target is built
The calculator starts from maintenance, the calories you burn in a normal day, and adds a surplus sized to the rate of gain you pick. Maintenance comes from the Mifflin-St Jeor equation, the resting-energy formula most dietitians use: 10 x weight in kg + 6.25 x height in cm - 5 x age, plus 5 for men or minus 161 for women. A 30-year-old man who weighs 80 kg and stands 180 cm tall burns about 1,780 kcal at rest.
That resting figure is multiplied by an activity factor, from 1.2 for a desk job with no training up to 1.9 for hard daily training. At the moderate factor of 1.55, the same man maintains his weight on roughly 2,760 kcal a day.
The surplus. Your weekly gain target is a percentage of body weight. At 0.25% per week the 80 kg man aims for 0.2 kg a week. Using the rough planning figure of 7,700 kcal per kilogram of gained tissue, that is 1,540 extra kcal a week, or about 220 kcal a day, so his target becomes about 2,980 kcal. The timeline divides the weight still to gain by the weekly rate: 5 kg at 0.2 kg a week is 25 weeks.