That's going to depend on how large of a tank it's in and how frequently you're willing to do water changes. If you can do daily water changes to keep ammonia and nitites at zero and don't overfeed and provide some aeration (bubble stone) you could keep a swordie going for quite some time.