I don’t know where “here” is, but in the U.K. it’s perfectly legal. You can even give yourself (as a director) an interest free loan.
However if the amount owed is greater than ~£10k(?) at the end of the corporate tax year, you need to pay it back within 9 months or it’s treated as income and taxed accordingly (there’s also regulations about paying it off before the end of the corporate tax year and taking out directly after). Still 21 months for an interest free loan isn’t bad...
However if the amount owed is greater than ~£10k(?) at the end of the corporate tax year, you need to pay it back within 9 months or it’s treated as income and taxed accordingly (there’s also regulations about paying it off before the end of the corporate tax year and taking out directly after). Still 21 months for an interest free loan isn’t bad...