BART charges a distance-based fare. It will cost $7.90 from Milpitas and $8.15 from Berryessa/North San José for a one-way trip using a Clipper Card. It will cost $0.50 more if you do not use a Clipper Card. It will cost less if you are a senior or a person with disabilities.
For information on how much it will cost to go to other BART stations, see the fare calculator on BART's website.