Optimal interval for testing biomarkers