Latest calculation

The latest calculation card shows the latest calculated dates for a prisoner. It shows:

  • The date the calculation was made (optional)
  • The reason for the calculation (optional)
  • The location the calculation was made, if available
  • Whether the dates where calculated using NOMIS or CRDS
  • Relevant actions (for CRDS calculations only)
  • Any hints about the calculated date and links to relevant policy where necessary
  • A link to print the notification slip (optional)

NOMIS

01 June 2024
Calculation reason: Transfer check

    NOMIS
SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028
ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

CRDS with notification slip

01 June 2024 at HMP Kirkham
Calculation reason: Transfer check

SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028

This hint contains a link to some policy (opens in new tab)

ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

CRDS with notification slip and action

01 June 2024 at HMP Kirkham
Calculation reason: Transfer check

SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028

This hint contains a link to some policy (opens in new tab)

ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

NOMIS with no calculation reason

Release dates

    NOMIS
SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028
ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

CRDS with notification slip with no calculation reason

Release dates

SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028

This hint contains a link to some policy (opens in new tab)

ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

CRDS with notification slip and action with no calculation reason

SLED

Sentence and licence expiry date

Tuesday, 19 February 2036
CRD

Conditional release date

Sunday, 19 February 2034

Friday, 17 February 2034 when adjusted to a working day

PED

Parole Eligibility Date

Friday, 21 April 2028

This hint contains a link to some policy (opens in new tab)

ERSED

Early Removal Scheme Eligibility Date

Wednesday, 21 April 2027

For nunjucks you will need to import the hmppsFormatDate filter from 'hmpps-court-cases-release-dates-design/hmpps/utils/utils'

Contents

<h3>NOMIS</h3>
        <div class="govuk-summary-card latest-calculation-card">
            <div class="govuk-summary-card__title-wrapper">
                <h2 class="govuk-summary-card__title">
                    
            
                01 June 2024
            
        <br>
                    
                        <span class="govuk-body">Calculation reason: Transfer check</span>
                    
                </h2>
                <ul class="govuk-summary-card__actions">
                    
                    
                        <div><span class="moj-badge moj-badge--grey">NOMIS</span></div>
                    
                </ul>
            </div>
            <div class="govuk-summary-card__content">
                <dl class="govuk-summary-list release-dates-list">
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-SLED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">SLED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Sentence and licence expiry date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Tuesday, 19 February 2036</span>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-CRD">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">CRD</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Conditional release date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Sunday, 19 February 2034</span>
                            <p class="govuk-!-font-size-16 govuk-hint release-date-hint">Friday, 17 February 2034 when adjusted to a working day</p>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-PED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">PED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Parole Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Friday, 21 April 2028</span>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-ERSED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">ERSED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Early Removal Scheme Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Wednesday, 21 April 2027</span>
                        </dd>
                    </div>
                
            </dl>
            </div>
        </div>
    
        <h3>CRDS</h3>
        <div class="govuk-summary-card latest-calculation-card">
            <div class="govuk-summary-card__title-wrapper">
                <h2 class="govuk-summary-card__title">
                    
            
                01 June 2024 at HMP Kirkham
            
        <br>
                    
                        <span class="govuk-body">Calculation reason: Transfer check</span>
                    
                </h2>
                <ul class="govuk-summary-card__actions">
                    
                        
        <li><a class="govuk-link govuk-!-padding-right-2" href="#"  data-qa="release-notification-hook">Print notification slip</a></li>
    
                    
                    
                </ul>
            </div>
            <div class="govuk-summary-card__content">
                <dl class="govuk-summary-list release-dates-list">
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-SLED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">SLED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Sentence and licence expiry date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Tuesday, 19 February 2036</span>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-CRD">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">CRD</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Conditional release date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Sunday, 19 February 2034</span>
                            <p class="govuk-!-font-size-16 govuk-hint release-date-hint">Friday, 17 February 2034 when adjusted to a working day</p>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-PED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">PED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Parole Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Friday, 21 April 2028</span>
                            <p class="govuk-!-font-size-16 govuk-hint release-date-hint"><a class="govuk-link release-date-hint-link" rel="noreferrer noopener" target="_blank" href="#" target="new">This hint contains a link to some policy (opens in new tab)</a></p>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-ERSED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">ERSED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Early Removal Scheme Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Wednesday, 21 April 2027</span>
                        </dd>
                    </div>
                
            </dl>
            </div>
        </div>
    
        <h3>CRDS with action</h3>
        <div class="govuk-summary-card latest-calculation-card">
            <div class="govuk-summary-card__title-wrapper">
                <h2 class="govuk-summary-card__title">
                    
            
                01 June 2024 at HMP Kirkham
            
        <br>
                    
                        <span class="govuk-body">Calculation reason: Transfer check</span>
                    
                </h2>
                <ul class="govuk-summary-card__actions">
                    
                        
        <li><a class="govuk-link govuk-!-padding-right-2" href="#"  data-qa="release-notification-hook">Print notification slip</a></li>
    
                    
                    
                        
        <li><a class="govuk-link" href="#" data-qa="my-qa-hook">View details</a></li>
    
                    
                </ul>
            </div>
            <div class="govuk-summary-card__content">
                <dl class="govuk-summary-list release-dates-list">
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-SLED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">SLED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Sentence and licence expiry date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Tuesday, 19 February 2036</span>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-CRD">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">CRD</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Conditional release date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Sunday, 19 February 2034</span>
                            <p class="govuk-!-font-size-16 govuk-hint release-date-hint">Friday, 17 February 2034 when adjusted to a working day</p>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-PED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">PED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Parole Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Friday, 21 April 2028</span>
                            <p class="govuk-!-font-size-16 govuk-hint release-date-hint"><a class="govuk-link release-date-hint-link" rel="noreferrer noopener" target="_blank" href="#" target="new">This hint contains a link to some policy (opens in new tab)</a></p>
                        </dd>
                    </div>
                
                    <div class="govuk-summary-list__row" data-qa="latest-calculation-card-release-date-ERSED">
                        <dt class="govuk-summary-list__key release-dates-key govuk-!-font-size-24"><span class="release-dates-type">ERSED</span><p class="govuk-!-font-size-16 govuk-hint release-date-description">Early Removal Scheme Eligibility Date</p></dt>
                        <dd class="govuk-summary-list__value release-dates-value">
                            <span class="release-date-formatted">Wednesday, 21 April 2027</span>
                        </dd>
                    </div>
                
            </dl>
            </div>
        </div>
{% set dpsCalculation = {
        calculatedAt: "2024-06-01T10:30:45",
        establishment: "HMP Kirkham",
        reason: "Transfer check",
        source: "CRDS",
        dates: [
            {
                type: "SLED",
                description: "Sentence and licence expiry date",
                date: "2036-02-19"
            },
            {
                type: "CRD",
                description: "Conditional release date",
                date: "2034-02-19",
                hints: [
                {
                    text: "Friday, 17 February 2034 when adjusted to a working day"
                }
            ]
            },
            {
                type: "PED",
                description: "Parole Eligibility Date",
                date: "2028-04-21",
                hints: [
                    {
                        text: "This hint contains a link to some policy",
                        href: "#"
                    }
                ]
            },
            {
                type: "ERSED",
                description: "Early Removal Scheme Eligibility Date",
                date: "2027-04-21"
            }
        ],
        printNotificationSlip: {
            href: '#',
            dataQa: 'release-notification-hook'
        }
    } %}
    
    {% set nomisCalculation = {
        calculatedAt: "2024-06-01T10:30:45",
        reason: "Transfer check",
        source: "NOMIS",
        dates: [
            {
                type: "SLED",
                description: "Sentence and licence expiry date",
                date: "2036-02-19"
            },
            {
                type: "CRD",
                description: "Conditional release date",
                date: "2034-02-19",
                hints: [
                {
                    text: "Friday, 17 February 2034 when adjusted to a working day"
                }
            ]
            },
            {
                type: "PED",
                description: "Parole Eligibility Date",
                date: "2028-04-21"
            },
            {
                type: "ERSED",
                description: "Early Removal Scheme Eligibility Date",
                date: "2027-04-21"
            }
        ]
    } %}
    
    {% set action = {
        title: 'View details',
        href: '#',
        dataQa: 'my-qa-hook'
    } %}
    
    <h3>NOMIS</h3>
    {{ latestCalculationCard(nomisCalculation, action) }}
    
    <h3>CRDS with notification slip</h3>
    {{ latestCalculationCard(dpsCalculation) }}
    
    <h3>CRDS with notification slip and action</h3>
    {{ latestCalculationCard(dpsCalculation, action) }}