But, if the sentenced person is kept in custody prior to the judgment of the Court, the number of days in custody shall be deducted from the period of imprisonment according to the judgment, unless the judgment provides otherwise.
In case of the judgment provides otherwise, the punishment of imprisonment according to the judgment, when added by the number of days in custody prior to the judgment of the Court in such case, shall not exceed the maximum rate of punishment as provided by the law for the committed offence. This shall not, however, affect the provisions of Section 91.