How do you calculate tandem repeats?