Your rank is based on how well you meet your target score within the set time limit. The higher your score and the lower your time, the higher your rank.