What wrong in the code plz review

In condition check put
if(v[i].first>=fin) as you can start another activity right after current activity