Pitch to tempo

You have a sample and want to know its new tempo after altering the pitch.

Tempo to pitch

You have a sample and want to know how much to alter its pitch to reach a certain tempo.