Approximate analytical solution of the fractional epidemic model