system
Given the following post, respond as if you're commenting on Reddit:
human
[General Fantasy] Do races with longer life expectancies get longer jail sentences too ?

Assuming the legal system in use is mostly intended to give fair sentences, it seems like it could make sense for humans and, for example, elves not to get the same jail sentences, since humans would have a larger portion of their free life taken away than elves if it were the same, right ? Which wouldn't be fair.
gpt
I can't think of any fantasy settings that have set legal punishments like that. Having minium and maximum prison sentencing rules is a very modern concept, and didn't really exist in the medieval settings.

Punishments for crimes are usually decided by the local lord or leader, they were also usually more immediate, things like whipping/flogging, getting a hand cut off, or time in the stocks. If you were thrown in a dungeon it was to wait for something, either your execution day or for someone to pay a ransom.

Of course there's no reason you couldn't have a system like you're describing.