calculates new samplign frequency for correct secondstage plotting