computed weight

Signed-off-by: Nader Hendawi <nader.hendawi@axial.net>