Work done by a Gravitational Force
Wg = mg d cos Φ
Δ K = Wnet
Kf – Ki =   0 = Wg + Wa
Wa = - Wg = mgd cos Φ
where Φ is angle between Fa and the displacement d
Wup =  -mgd     (going up)
Wdown =  mgd      (going down)