Sample size considerations for clinical trials with two primary time