If by "rent", you mean interest, then the permissible way is to give all the interest to charity without hoping for reward - so it won't count as sadaqah. The best way would of course be to alert the bank to not give you interest but if that isn't possible, then the former option is best.