Coherence length calculator