Study design for restricted mean time analysis of recurrent events and death