I cannot test this right now but a I believe you are just getting a true /false from this ...
Try changing this formula to:
One trick is to break things down and look at each part to make sure you are gettingt what is expected for that part of the formula. Then start adding it back togther piece by piece and test as necessary.