For the yesterday value, maybe a hidden textbox with a Dlookup statemtent for populating the value will work. Once you have that, the calculations should be easy to do in the expression builder.
You may want to employ the Nz function to avoid errors: Nz([field],0) to default values to...