Calculation of QTc duration and variability in the presence of sinus arrhythmia