The B-2s had about a $35 billion dollar development cost associated with the development of an all aspect stealth platform. Each aircraft only cost about $600 million, but the cost of the development was only spread through 20 aircraft, that is where the $2 billion dollar price tag comes from. The whole program cost $44 billion, divided by 20 aircraft equals $2.1 billion. The B-21 will have similar development costs that will hopefully be spread through a large fleet, hopefully over 200 aircraft.
I work maintenance planning engineering - there is nothing like being able to think the whole process through during design.