There are more rules and this post contains simplifications and is not comprehensive. Additionally, as always, a professional should be consulted and be presented with specific information.
The information on this website is general information and is for educational use and has not been verified for accuracy nor completeness. You, the reader, should further research your specific individual situation. In addition you should contact your accounting professional for professional advice derived from specific details from your structure and financial position.