Code for renewal reports generation