add c# based weight solver, taking into account AM / PM