Conventional loans require a minimum of 2 years after bankruptcy, but up to 4 years. To qualify for 2 years, the BK must have been a result of extenuating circumstances. For a Fannie Mae loan, "extenuating circumstances" are situations which (1) occur one-time only; (2) are beyond the borrower's control; and, (3) result in a sudden, significant, and prolonged reduction in income. Here's an in-depth post about this issue. https://themortgagereports.com/16750/fannie-mae-waiting-period-bankruptcy-short-sale-foreclosure
If conventional doesn't work, you might have better luck with an FHA loan.