Deductions & credits

someone told me with the new laws you must remain in home 4 out of 7 years