Does Rehabilitation of Offenders Act work on the sentence given or actual sentence served?

Declaration subject to Rehabilitation of Offenders Act?