This meaning is about having enough money to buy or do something. If you can afford it, you have the money or resources to get it.
I can afford a new bike now.
She cannot afford the expensive dress.
Here, afford means to accept or allow something without bad effects. It means you have enough ability or resources to handle it.
We cannot afford to lose time now.
He can't afford to make mistakes here.
This meaning is about something providing or allowing a chance, possibility, or feature. It means you can get or experience something from it.
The view from here affords a great sight.
This room affords more space than before.
This meaning focuses on money and costs. If you afford something, you have enough money to pay for it without trouble.
They cannot afford to pay the rent.
I can afford to eat out once a week.
In formal or literary use, afford can mean to give or allow a chance, right, or protection. It is often used in law or official talks.
This new law affords protection to workers.
The contract afforded them great benefits.
This meaning often shows risk or danger that you cannot accept. It means you do not have the ability or resources to do something bad.
We can't afford another mistake now.
They cannot afford to ignore the problem.