  A differential algebra with weight is an abstraction of both the derivation
(weight zero) and the forward and backward difference operators (weight $\pm
1$). In 2010 Loday established the Koszul duality for the operad of
differential algebras of weight zero. He did not treat the case of nonzero
weight, noting that new techniques are needed since the operad is no longer
quadratic. This paper continues Loday's work and establishes the Koszul duality
in the case of nonzero weight. In the process, the minimal model and the Koszul
dual homotopy cooperad of the operad governing differential algebras with
weight are determined. As a consequence, a notion of homotopy differential
algebras with weight is obtained and the deformation complex as well as its
$L_\infty$-algebra structure for differential algebras with weight are deduced.
