The court found that the trial court failed to comply with the mandatory requirement under section 333(2) of the Criminal Procedure Code to consider the period the applicant spent in remand custody prior to sentencing. The applicant was in remand for 8 months and 21 days, which was not deducted from the seven-year sentence imposed. The High Court held that this omission was a violation of the applicant's statutory right and that the sentence must be recalculated to deduct the remand period, ensuring compliance with the law and upholding the applicant's rights.