400k if your visa is based on marriage to a Thai. The post is about the OP coming to Thailand to live with his Thai wife, Why mentioned retirement visa.
100% correct Stewart all of the posters that were saying you were incorrect were confusing the validity period Of the Visa versus the number of days your visa allows you to stay in Thailand once you arrive. Correctly said by you normally you have 90 days to use the visa. And that 90 days starts from the date the visa was issued. As you again correctly said. Then once you arrive, you can stay in Thailand for the number of days that your visa allows.
you still have to prove that it was an international transfer and that the money came from outside of Thailand how would you do that if you carry the money in? 
Bangkok Bank is the same way. My Branch is in Phichit there is no fee to withdraw money inside the bank of your own Branch. If I go to Bangkok and try to withdraw a large amount from inside the bank, there is a fee also I think it’s somewhere in the neighborhood of ฿200.
NonO based on married to a Thai is only 400k  which doesn’t apply to him because he can get the income verification certificate from the German Embassy in Bangkok
I don’t understand why they would be asking you for your TM 30 at immigrations upon entry into Thailand because it’s required to be filed within 24 hours of your arrival at your hotel or residence.