To calculate the optimal length of a required antenna, first determine the wavelength λ:
λ = c/f
c
is the speed of light (299792458 m/s)
f
is the frequency of the radio module used (e.g.: 433 MHz = 433000000 Hz)
Fractions of the wavelength can then be used as a measure for an antenna.