Carleson’s formula for some weighted Dirichlet spaces (Moroccan Journal of Pure and Applied Analysis, 2023)