this might be a good starting point
you can find the required velocity to get into the hoop and multiply it by how accurate the player filled the bar