TeX source:
=50*10000+40*(10000/500)+5*(500/2)=502050