Well, there's no formal definition of "unicorn valuation." But $40 million is a fair bit of money to raise and, if you figure 10x return as a target ballpark, that brings you up to $400 million which is at least in the ballpark of $1 billion.
I think Unicorn is very specific and $1 billion is the amount
How much a company raises and its valuation are two completely different things.
While that is true, it is also unusual for a Series B round to represent less than 10% equity in the target company, so it would be safe to assume a post-money valuation of no more than $400MM.