How quickly can you be released from prison for good behaviour? And what constitutes good behaviour in your country?

r/

Aka parole. Does it matter how long your term is? Can your sentence forbid early release?