Pass time to rate
Fix stupid algorithm to take time