Code done for output of active companies/month