FIFO METHOD EFU

so from the CPA material the formula is EWIP unit x completion + unit completed and transferred out - BWIP x completion. However, on youtube and couple other websites I see below formulas EWIP unit x completion + unit completed and transferred out + BWIP x(1-completion) and obviously that makes a huge different.