Let G = SL(2, R) ⋉ (R 2 ) ⊕k and let Γ be a congruence subgroup of SL(2, Z) ⋉ (Z 2 ) ⊕k . We prove a polynomially effective asymptotic equidistribution result for special types of unipotent orbits in Γ\G which project to pieces of closed horocycles in SL(2, Z)\ SL(2, R).As an application, we prove an effective quantitative Oppenheim type result for the quadraticfollowing the approach by Marklof [24] using theta sums.1 Apply [5, Thm. 3] with d = 2 and M = 12 and use the anti-automorphism (M, ( x x ′ )) → ( t M, t M x ′ −x ) of G to translate from the setting with G/Γ in [5] into our setting with X = Γ\G. As noted in [5, Remark 7.2], the proof of [5, Thm. 3] extends trivially to the case when Γ is an arbitrary subgroup of SL(2, Z) ⋉ (Z 2 ) ⊕k of finite index.