Sampling rate calculation at 1kHz