Concerning Job as an accountant in any (non-banking) firm

As Salamu Alaikum,
Is it permissible to work as an accountant for a firm, where the base of the company is not riba based, but they have taken loans which are riba based, and then I will have to review those transactions after they have taken the loan (i.e., I was not involved in the agreement, I am just making sure that the transactions are correct), will that be Haram?
In general in what occassions is it permissible to work as an accountant?