Auto-calculate frequency/size