Calculation of AC losses and current distributions in high-Tc superconducting layered-conductor