Recent research has found that the recommended length of a course of antibiotics is basically just a guess and doesn't have any hard science backing it.
I've even seen research that suggests that not finishing the full course if you feel better helps prevent resistant bacteria from taking over (because the antibiotics are killing the bacteria that are outcompeting them).