The length of time will depend on the type of crime committed and how serious the offense was. Someone who deprives another person of property is not going to receive the same amount of time as someone who intentionally kills someone. A convicted criminal may also be subjected to probation or some other types of things as part of being released out into society again. These are meant as a type of prevention tool to help a criminal not reoffend in the future. When people who are convicted of crimes receive some type of punishment it is hoped that it will reduce the rate of crime in an area or city. It is assumed that when others see and hear about a person being punished for doing a crime they might stop and think before they commit a crime themselves.
Punishment can also come in the form of reparation which is often in the form of money being paid by the criminal to the victim. In certain cases community service can be imposed on a criminal in place of money or jail time or can be added as part of a way to be released early. When it comes to deterrence there are two types specific and general. Specific deterrence is meant to scare the offender enough to prevent them from committing crime in the future. General deterrence is meant to scare society by teaching them a lesson and showing those in society what can and will happen if you commit a crime.