Unfortunately both "formulas" are wrong.
A converter with variable input voltage and intended constant output must involve a method of voltage regulation, either by PWM at the primary or a separate secondary switcher. The selection of a suitable converter topology also affects the transformer dimensioning. So choose the converter topology first.
P.S.: A fullwave two-diode rectifier with an additional inductor would be a standard solution, requiring a center tapped secondary winding.