Criminal Practitioner App 1 – Month Calculator

App 1 – Month Calculator

This app allows the user to calculate the shortest possible sentence a defendant can achieve – depending on which month they plead guilty on. For example, if a sentence is 1 month long, a defendant who pleads guilty in February gets 28 days and March gets 31 days. This gets a little complicated with longer sentences and leap years, so I’ve included the logic in an article and an app

A sample output. The table is for visual users, however the information is also contained in the text below

This table shows that the defendant will get a 121 day sentence if they immediately plead, and a 122 day sentence if they plead in November.

The text below indicates the theoretical lowest sentence is 120 days (non-leap year (28,31,30,31), but this isn’t achievable in 2024 (which is a leap year), hence the text saying Min Sentence if Remanded In Custody 121 days not 120 days.


If the defendant ‘waits’ past the yellow mark, they will spend more than 121 days in custody.

To run the file, unzip the file in the link above, and run the exe.

My apologies if it’s a bit bulky at 44MB, it’s a python script runing matlab, so it takes a fair chunk of memory, despite being a small program

It may be a little difficult to download because its a zip file containing an exe. Historically, zip files containing exe’s have be used to disguise malware. The alternative was to post the python files via a GitHub repository, but that requires a degree of coding knowledge, and I didn’t want to encumber a legal app with non-legal knowledge.

TLDR there’s every chance you’ll get the ‘suspicious download’ warning. My apologies, but I don’t know how to get around that.

README

Short article summarizing how everything works

Scroll to Top