When a plan reaches the end of its term, two things happen.
Your capital comes back
If the plan returns capital, it lands in your available balance on the maturity date.
The last payout
The final profit payment is credited at the usual payout time.
What next
You can withdraw, start a new plan or keep the money in your wallet.