thank you so much for your reply.
we apply each month tax rate individually. pls see below. for Jan to Mar, it picks 20% tax from a form and then i'm entering 25% for the month of April. it makes 25% periodic but not the effective YTD of April as 25%. and if i change the below rule to compute YTD just for month of April as 25%, it works for local currency entities but USD conversion is slightly off. it is not exact 25%. it comes out to be 25.xx %. cant figure out why
If ((Not api.Entity.HasChildren()) And api.Cons.IsLocalCurrencyForEntity) Then
'api.Data.ClearCalculatedData(True,True,True,"A#[Calc Tax Exp (M)]")
If monthNo = 1 Then
api.Data.Calculate("A#[Calc Tax Exp (M)]:F#None:I#None:U4#None:U6#None:U7#None:U8#None = " & _
"A#[Pre Tax Income (M)]:F#Top:I#Top:U4#Top:U6#None:U7#None:U8#Top * " & (taxRate/100))
Else
api.Data.Calculate("A#[Calc Tax Exp (M)]:F#None:I#None:U4#None:U6#None:U7#None:U8#None = " & _
"(A#[Pre Tax Income (M)]:V#Periodic:F#Top:I#Top:U4#Top:U6#None:U7#None:U8#Top * " & (taxRate/100) & ") + " & _
"A#[Calc Tax Exp (M)]:V#YTD:F#Top:I#Top:U4#Top:U6#None:U7#None:U8#Top:T#POVPrior1")
End If